package com.neo.push.server.connection;

import com.neo.push.core.AcceptPush;
import com.neo.push.core.RegisterMessage;
import com.neo.push.core.SafetySocketMessage;
import com.neo.push.core.connection.MessageAcceptor;
import com.neo.push.core.connection.MessageWriter;
import com.neo.push.server.listener.TimeoutEventListener;

import java.util.List;

/**
 * Created by lock on 17-7-11.
 *
 * 每次发送一个消息，可以在时间段内来记录是否保证该消息，一定要收到
 *
 */
public interface PushMessageHandler extends MessageWriter<SafetySocketMessage>,MessageAcceptor,TimeoutEventListener {

    List<AcceptPush> loadOfflinePush(RegisterMessage registerMessage) throws Exception;



}
